<html
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui">

    <ui:composition template="layout.xhtml">

        <ui:define name="title">
            Protesto - Emitir Cartas
            <script>
                function title() {
                    document.getElementById('protesto').className='selected';
                }
                window.onload=title;
            </script>

        </ui:define>

        <ui:define name="content">
            <h:form id="emitirCartasProtestoForm" enctype="multipart/form-data"   >           

                <p:growl id="emitirCartasMessages"/>
                <f:validateBean disabled="true">

                    <fieldset>
                        <legend> <h4 style="margin:0 0 10px 0">Emitir Cartas</h4></legend>
                        <p:panel styleClass="column12" id="protocoloPanel" style="background: none; border: none;" >
                            <div class="row">

                                <div class="column1">
                                    <p:outputLabel value="Apartir de" for="apartirde" />
                                </div>
                                <div class="column3">
                                    <p:calendar id="apartirde"
                                                showOn="button" pattern="dd/MM/yyyy" locale="pt" navigator="true" />
                                </div>

                                <div class="column1">
                                    <p:outputLabel value="até" for="ate" />
                                </div>
                                <div class="column3">
                                    <p:calendar id="ate"
                                                showOn="button" pattern="dd/MM/yyyy" locale="pt" navigator="true" />
                                </div>
                            </div>
                        </p:panel>
                    </fieldset>
                </f:validateBean>
                <div class="buttonAction">
                    <p:commandButton value="Emitir"
                                     actionListener="#{managerPesquisarProtesto.pesquisar()}"
                                     process="@form"
                                     styleClass="ui-priority-primary"
                                     update="@form"
                                     icon="ui-icon-disk" />
                    <p:button value="Cancelar" icon="ui-icon-cancel" 
                              href="indexProtesto.xhtml" />
                </div>

            </h:form>
        </ui:define>      

    </ui:composition>

</html>
